#include "metadatadisplay.h"

MetaDataDisplay::MetaDataDisplay(QWidget *parent) : QWidget(parent)
{
    m_layout = new QFormLayout(this);
    setLayout(m_layout);

    m_title = new QLabel;
    m_artist = new QLabel;
    m_album = new QLabel;

    m_layout->addRow("Title:", m_title);
    m_layout->addRow("By:", m_artist);
    m_layout->addRow("On:", m_album);
}

MetaDataDisplay::~MetaDataDisplay()
{

}

void MetaDataDisplay::display(SongData *data){
    m_title->setText(data->title);
    m_artist->setText(data->artist);
    m_album->setText(data->album);
}
